<template>
  <el-timeline>
    <blockquote  v-for="(val, index) in wordsData" :key="index">
      <el-timeline-item
        :timestamp="val.dpushtime"
        placement="top"
      >
        <el-card>
          <h4>{{ val.author }}</h4>
          <p>{{ val.content }}</p>
        </el-card>
      </el-timeline-item>
    </blockquote>
  </el-timeline>
</template>

<script>
import { dayWords } from "../api/myReq";
export default {
  name: "dayWords",
  data() {
    return {
      wordsData: "",
    };
  },
  mounted() {
    dayWords().then((resp) => {
      this.wordsData = resp.data.data[0].list;
    });
  },
};
</script>

<style>
</style>